package com.nbsaas.boot.shop.data.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.nbsaas.boot.code.annotation.CatalogClass;
import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.code.annotation.SearchItem;
import com.nbsaas.boot.jpa.data.entity.CatalogEntity;
import com.nbsaas.boot.rest.filter.Operator;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@FormAnnotation(title = "商家分类", model = "商家分类")
@CatalogClass(lazyData = true)
@Data
@Entity
@Table(name = "shop_category")
public class ShopCategory   {


	@TableId(value = "id", type = IdType.AUTO)
	@Id()
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Comment("主键id")
	private Long id;


	/**
	 * 分类别名
	 */
	private String name;

	private String pinyin;

	private String py;

	private Long nums;


	private String path;

	private String icon;

	private Long parentId;

	@Comment("添加时间")
	private Date addDate;

	/**
	 * 最新修改时间
	 */
	@Comment("最新修改时间")
	private Date lastDate;

}
